package 练习;

public class text1 {
    public static void main(String[] args) {


    }


    //构造一个zhu类作为一个父类
    public class zhu {

        private String name;
        private int age;

        public zhu() {
        }

        public zhu(String name, int age) {
            this.name = name;
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }

    //用extends来继承父类zhu的公共的成员变量和成员方法
    public class li extends zhu {

    }
}
